package idv.np7sky.ocean.consumer.component;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * TODO
 *
 * @author zxw
 * @version 2.3.0
 * @date 2020-07-11 17:03
 * @since 2.3.0
 */
@Slf4j
@Component
@Order(1)
public class ConsumerApplicationRunner implements ApplicationRunner {
    /**
     * Callback used to run the bean.
     *
     * @param args incoming application arguments
     * @throws Exception on error
     */
    @Override
    public void run(ApplicationArguments args) throws Exception {
        log.info("Hello World! Consumer Spring Boot Application Runner");
    }
}
